package scoutobahn.xml;
/**
 * A member of a OsmRelation.
 * @author mark
 *
 */
public class OsmRelationMember {
    private final OsmItem item;
    private final OsmXmlTypes type;
    /**
     * Constructs a new OsmRelationMember with the given type
     * and the given referenced OsmItem.
     * @param osmType The type of the item
     * @param osmItem The referenced item
     */
    public OsmRelationMember(final OsmXmlTypes osmType,
            final OsmItem osmItem) {
        this.item = osmItem;
        this.type = osmType;
    }
    /**
     * Returns the referenced item.
     * @return Referenced item
     */
    public OsmItem getReferencedItem() {
        return this.item;
    }
    /**
     * Returns the type of the referenced item.
     * @return The type
     */
    public OsmXmlTypes getType() {
        return this.type;
    }
}
